package com.ruoyi.project.relation.service;

import java.util.Date;
import java.util.List;

import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.project.relation.domain.dto.BusinessRelationDO;
import com.ruoyi.project.relation.domain.dto.OneWayBusinessRelationDO;
import org.shoukaiseki.common.function.TwoNoFunction;
import java.util.function.Function;
import com.ruoyi.project.relation.domain.OneWayBusinessRelationship;
import com.ruoyi.project.relation.domain.qo.OneWayBusinessRelationshipQO;
import org.springframework.transaction.annotation.Transactional;

/**
 * 单向业务关联Service接口
 *
 * @author wb
 * @date 2021-04-14
 */
public interface IOneWayBusinessRelationshipService
{

    /**
     * 增加关联
     * @param sourceBusinessRelationDO
     * @param targetBusinessRelationDO
     * @param sysUser
     * @param nowDate
     */
    public void addInterrelate(OneWayBusinessRelationDO sourceBusinessRelationDO, OneWayBusinessRelationDO targetBusinessRelationDO);


    public void deleteOneWayBusinessRelationshipByOwner(OneWayBusinessRelationDO sourceBusinessRelationDO);

    /**
     * 删除关联
     * @param oneWayBusinessRelationshipQO
     */
    public void deleteOneWayBusinessRelationship(OneWayBusinessRelationDO sourceBusinessRelationDO, OneWayBusinessRelationDO targetBusinessRelationDO);


    /**
     * 新增单向业务关联
     *
     * @param oneWayBusinessRelationship 单向业务关联
     * @return 主键
     */
    public Long insertOneWayBusinessRelationship(OneWayBusinessRelationship oneWayBusinessRelationship);

    /**
     * 批量删除单向业务关联
     *
     * @param oneWayBusinessRelationshipIds 需要删除的单向业务关联ID
     * @return 结果
     */
    public int deleteOneWayBusinessRelationshipByIds(Long... oneWayBusinessRelationshipIds);
}
